package fishcms

class ApplicationController {

    def nav() {
        render template: '/nav', model: [categories: Category.findAll()]
    }

    def index() {

        def latest = Post.findAll([max: 10, offset: 0])

        render view: '/index', model: [categories: Category.findAll(), latest: latest]
    }

}
